package com.aoip.telemetry.telemetry.quartz.task.monitoringdata;

import com.aoip.telemetry.telemetry.quartz.task.monitoringdata.mapper.MonitoringDataSubTableMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 监测数据分表定时任务，优化查询效率
 *
 * @author chenbai
 * @version 1.0
 * @date 2022/4/24 15:46
 */
@Component
public class MonitoringDataSubTableTask {

    @Resource
    private MonitoringDataSubTableMapper mapper;

    public void task() {
        try {
            mapper.saveHis();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
